  /**
   * Generate time : 2012-06-13 10:40:20
   * Version : 1.0.1.V20070717
   */
package com.baosight.sczx.zm.ct.domain;

import com.baosight.iplat4j.util.NumberUtils;
import com.baosight.iplat4j.core.ei.EiColumn;
import com.baosight.iplat4j.ep.DaoEPBase;
import java.util.HashMap;
import java.util.Map;
import com.baosight.iplat4j.util.StringUtils;
/**
 * ZMCTSmsBoxsended 
 *  
 */
public class ZMCTSmsBoxsended extends DaoEPBase {

	private Float id = new Float(0);		
	private String appid = " ";		
	private String fdName = " ";		
	private String fdMobilePhone = " ";		
	private String fdSmsContent = " ";		
	private String moduleid = " ";		
	private String inserttime = " ";		
	private String createtime = " ";		
	private String pri = " ";		
	private String fdSendTime = " ";		
	private String taskBatchname = " ";		
	private Long retrytimes = new Long(0);	
	private String addtion1 = " ";		
	private String addtion2 = " ";		
	private String addtion3 = " ";		
	private String sendmode = " ";		
	private Float sid = new Float(0);		
	private String receipt = " ";		
	private String receipttime = " ";		
	private String innerid = " ";		
	private Long fragcount = new Long(0);	
	private String configid = " ";		
	private String linkid1 = " ";		
	private String linkid2 = " ";		
	private String validityperiod = " ";		
	private String ifreceipt = " ";		
	private String outteruser = " ";	
	private String fdStatus = " ";

	/**
	 * initialize the metadata 
	 */
	public void initMetaData() {
		EiColumn eiColumn;
		
	eiColumn = new EiColumn("id");
	eiColumn.setPrimaryKey(true);
	eiColumn.setType("C");
	eiColumn.setScaleLength(20);
	eiColumn.setFieldLength(0);
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("appid");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdName");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdMobilePhone");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSmsContent");
	eiColumn.setFieldLength(500);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("moduleid");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("inserttime");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("createtime");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("pri");
	eiColumn.setFieldLength(1);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fdSendTime");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("taskBatchname");
	eiColumn.setFieldLength(40);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("retrytimes");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(38);
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("addtion1");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("addtion2");
	eiColumn.setFieldLength(30);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("addtion3");
	eiColumn.setFieldLength(40);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("sendmode");
	eiColumn.setFieldLength(1);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("sid");
	eiColumn.setType("C");
	eiColumn.setScaleLength(20);
	eiColumn.setFieldLength(0);
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("receipt");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("receipttime");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("innerid");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("fragcount");
	eiColumn.setType("N");
	eiColumn.setScaleLength(0);
	eiColumn.setFieldLength(38);
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("configid");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("linkid1");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("linkid2");
	eiColumn.setFieldLength(50);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("validityperiod");
	eiColumn.setFieldLength(20);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("ifreceipt");
	eiColumn.setFieldLength(1);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);
	
	eiColumn = new EiColumn("outteruser");
	eiColumn.setFieldLength(100);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);

	eiColumn = new EiColumn("fdStatus");
	eiColumn.setFieldLength(100);	
	eiColumn.setDescName(" ");
	eiMetadata.addMeta(eiColumn);


	}
	/**
	 * the constructor
	 */
	public ZMCTSmsBoxsended() {
		initMetaData();
	}
	
	/**
	 * get the id 
	 * @return the id
	 */
	public Float getId() {
		return this.id;
	}
	
	/**
	 * set the id 
	 */
	public void setId(Float id) {
		this.id = id;
	}
	
	/**
	 * get the appid 
	 * @return the appid
	 */
	public String getAppid() {
		return this.appid;
	}
	
	/**
	 * set the appid 
	 */
	public void setAppid(String appid) {
		this.appid = appid;
	}
	
	/**
	 * get the fdName 
	 * @return the fdName
	 */
	public String getFdName() {
		return this.fdName;
	}
	
	/**
	 * set the fdName 
	 */
	public void setFdName(String fdName) {
		this.fdName = fdName;
	}
	
	/**
	 * get the fdMobilePhone 
	 * @return the fdMobilePhone
	 */
	public String getFdMobilePhone() {
		return this.fdMobilePhone;
	}
	
	/**
	 * set the fdMobilePhone 
	 */
	public void setFdMobilePhone(String fdMobilePhone) {
		this.fdMobilePhone = fdMobilePhone;
	}
	
	/**
	 * get the fdSmsContent 
	 * @return the fdSmsContent
	 */
	public String getFdSmsContent() {
		return this.fdSmsContent;
	}
	
	/**
	 * set the fdSmsContent 
	 */
	public void setFdSmsContent(String fdSmsContent) {
		this.fdSmsContent = fdSmsContent;
	}
	
	/**
	 * get the moduleid 
	 * @return the moduleid
	 */
	public String getModuleid() {
		return this.moduleid;
	}
	
	/**
	 * set the moduleid 
	 */
	public void setModuleid(String moduleid) {
		this.moduleid = moduleid;
	}
	
	/**
	 * get the inserttime 
	 * @return the inserttime
	 */
	public String getInserttime() {
		return this.inserttime;
	}
	
	/**
	 * set the inserttime 
	 */
	public void setInserttime(String inserttime) {
		this.inserttime = inserttime;
	}
	
	/**
	 * get the createtime 
	 * @return the createtime
	 */
	public String getCreatetime() {
		return this.createtime;
	}
	
	/**
	 * set the createtime 
	 */
	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}
	
	/**
	 * get the pri 
	 * @return the pri
	 */
	public String getPri() {
		return this.pri;
	}
	
	/**
	 * set the pri 
	 */
	public void setPri(String pri) {
		this.pri = pri;
	}
	
	/**
	 * get the fdSendTime 
	 * @return the fdSendTime
	 */
	public String getFdSendTime() {
		return this.fdSendTime;
	}
	
	/**
	 * set the fdSendTime 
	 */
	public void setFdSendTime(String fdSendTime) {
		this.fdSendTime = fdSendTime;
	}
	
	/**
	 * get the taskBatchname 
	 * @return the taskBatchname
	 */
	public String getTaskBatchname() {
		return this.taskBatchname;
	}
	
	/**
	 * set the taskBatchname 
	 */
	public void setTaskBatchname(String taskBatchname) {
		this.taskBatchname = taskBatchname;
	}
	
	/**
	 * get the retrytimes 
	 * @return the retrytimes
	 */
	public Long getRetrytimes() {
		return this.retrytimes;
	}
	
	/**
	 * set the retrytimes 
	 */
	public void setRetrytimes(Long retrytimes) {
		this.retrytimes = retrytimes;
	}
	
	/**
	 * get the addtion1 
	 * @return the addtion1
	 */
	public String getAddtion1() {
		return this.addtion1;
	}
	
	/**
	 * set the addtion1 
	 */
	public void setAddtion1(String addtion1) {
		this.addtion1 = addtion1;
	}
	
	/**
	 * get the addtion2 
	 * @return the addtion2
	 */
	public String getAddtion2() {
		return this.addtion2;
	}
	
	/**
	 * set the addtion2 
	 */
	public void setAddtion2(String addtion2) {
		this.addtion2 = addtion2;
	}
	
	/**
	 * get the addtion3 
	 * @return the addtion3
	 */
	public String getAddtion3() {
		return this.addtion3;
	}
	
	/**
	 * set the addtion3 
	 */
	public void setAddtion3(String addtion3) {
		this.addtion3 = addtion3;
	}
	
	/**
	 * get the sendmode 
	 * @return the sendmode
	 */
	public String getSendmode() {
		return this.sendmode;
	}
	
	/**
	 * set the sendmode 
	 */
	public void setSendmode(String sendmode) {
		this.sendmode = sendmode;
	}
	
	/**
	 * get the sid 
	 * @return the sid
	 */
	public Float getSid() {
		return this.sid;
	}
	
	/**
	 * set the sid 
	 */
	public void setSid(Float sid) {
		this.sid = sid;
	}
	
	/**
	 * get the receipt 
	 * @return the receipt
	 */
	public String getReceipt() {
		return this.receipt;
	}
	
	/**
	 * set the receipt 
	 */
	public void setReceipt(String receipt) {
		this.receipt = receipt;
	}
	
	/**
	 * get the receipttime 
	 * @return the receipttime
	 */
	public String getReceipttime() {
		return this.receipttime;
	}
	
	/**
	 * set the receipttime 
	 */
	public void setReceipttime(String receipttime) {
		this.receipttime = receipttime;
	}
	
	/**
	 * get the innerid 
	 * @return the innerid
	 */
	public String getInnerid() {
		return this.innerid;
	}
	
	/**
	 * set the innerid 
	 */
	public void setInnerid(String innerid) {
		this.innerid = innerid;
	}
	
	/**
	 * get the fragcount 
	 * @return the fragcount
	 */
	public Long getFragcount() {
		return this.fragcount;
	}
	
	/**
	 * set the fragcount 
	 */
	public void setFragcount(Long fragcount) {
		this.fragcount = fragcount;
	}
	
	/**
	 * get the configid 
	 * @return the configid
	 */
	public String getConfigid() {
		return this.configid;
	}
	
	/**
	 * set the configid 
	 */
	public void setConfigid(String configid) {
		this.configid = configid;
	}
	
	/**
	 * get the linkid1 
	 * @return the linkid1
	 */
	public String getLinkid1() {
		return this.linkid1;
	}
	
	/**
	 * set the linkid1 
	 */
	public void setLinkid1(String linkid1) {
		this.linkid1 = linkid1;
	}
	
	/**
	 * get the linkid2 
	 * @return the linkid2
	 */
	public String getLinkid2() {
		return this.linkid2;
	}
	
	/**
	 * set the linkid2 
	 */
	public void setLinkid2(String linkid2) {
		this.linkid2 = linkid2;
	}
	
	/**
	 * get the validityperiod 
	 * @return the validityperiod
	 */
	public String getValidityperiod() {
		return this.validityperiod;
	}
	
	/**
	 * set the validityperiod 
	 */
	public void setValidityperiod(String validityperiod) {
		this.validityperiod = validityperiod;
	}
	
	/**
	 * get the ifreceipt 
	 * @return the ifreceipt
	 */
	public String getIfreceipt() {
		return this.ifreceipt;
	}
	
	/**
	 * set the ifreceipt 
	 */
	public void setIfreceipt(String ifreceipt) {
		this.ifreceipt = ifreceipt;
	}
	
	/**
	 * get the outteruser 
	 * @return the outteruser
	 */
	public String getOutteruser() {
		return this.outteruser;
	}
	
	/**
	 * set the outteruser 
	 */
	public void setOutteruser(String outteruser) {
		this.outteruser = outteruser;
	}

	/**
	 * get the outteruser 
	 * @return the outteruser
	 */
	public String getFdStatus() {
		return this.fdStatus;
	}
	
	/**
	 * set the outteruser 
	 */
	public void setFdStatus(String fdStatus) {
		this.fdStatus = fdStatus;
	}

	/**
	 * get the value from Map
	 */
	public void fromMap(Map map) {
	
		setId(NumberUtils.toFloat(StringUtils.toString(map.get("id")), id));
		setAppid(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("appid")), appid));
		setFdName(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdName")), fdName));
		setFdMobilePhone(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdMobilePhone")), fdMobilePhone));
		setFdSmsContent(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSmsContent")), fdSmsContent));
		setModuleid(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("moduleid")), moduleid));
		setInserttime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("inserttime")), inserttime));
		setCreatetime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("createtime")), createtime));
		setPri(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("pri")), pri));
		setFdSendTime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdSendTime")), fdSendTime));
		setTaskBatchname(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("taskBatchname")), taskBatchname));
		setRetrytimes(NumberUtils.toLong(StringUtils.toString(map.get("retrytimes")), retrytimes));
		setAddtion1(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("addtion1")), addtion1));
		setAddtion2(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("addtion2")), addtion2));
		setAddtion3(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("addtion3")), addtion3));
		setSendmode(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("sendmode")), sendmode));
		setSid(NumberUtils.toFloat(StringUtils.toString(map.get("sid")), sid));
		setReceipt(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("receipt")), receipt));
		setReceipttime(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("receipttime")), receipttime));
		setInnerid(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("innerid")), innerid));
		setFragcount(NumberUtils.toLong(StringUtils.toString(map.get("fragcount")), fragcount));
		setConfigid(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("configid")), configid));
		setLinkid1(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("linkid1")), linkid1));
		setLinkid2(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("linkid2")), linkid2));
		setValidityperiod(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("validityperiod")), validityperiod));
		setIfreceipt(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("ifreceipt")), ifreceipt));
		setOutteruser(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("outteruser")), outteruser));
		setFdStatus(StringUtils.defaultIfEmpty(StringUtils.toString(map.get("fdStatus")), fdStatus));

	}
	
	/**
	 * set the value to Map
	 */
	public Map toMap() {
		
		Map map = new HashMap();
			map.put("id",StringUtils.toString(id, eiMetadata.getMeta("id")));	
			map.put("appid",StringUtils.toString(appid, eiMetadata.getMeta("appid")));	
			map.put("fdName",StringUtils.toString(fdName, eiMetadata.getMeta("fdName")));	
			map.put("fdMobilePhone",StringUtils.toString(fdMobilePhone, eiMetadata.getMeta("fdMobilePhone")));	
			map.put("fdSmsContent",StringUtils.toString(fdSmsContent, eiMetadata.getMeta("fdSmsContent")));	
			map.put("moduleid",StringUtils.toString(moduleid, eiMetadata.getMeta("moduleid")));	
			map.put("inserttime",StringUtils.toString(inserttime, eiMetadata.getMeta("inserttime")));	
			map.put("createtime",StringUtils.toString(createtime, eiMetadata.getMeta("createtime")));	
			map.put("pri",StringUtils.toString(pri, eiMetadata.getMeta("pri")));	
			map.put("fdSendTime",StringUtils.toString(fdSendTime, eiMetadata.getMeta("fdSendTime")));	
			map.put("taskBatchname",StringUtils.toString(taskBatchname, eiMetadata.getMeta("taskBatchname")));	
			map.put("retrytimes",StringUtils.toString(retrytimes, eiMetadata.getMeta("retrytimes")));	
			map.put("addtion1",StringUtils.toString(addtion1, eiMetadata.getMeta("addtion1")));	
			map.put("addtion2",StringUtils.toString(addtion2, eiMetadata.getMeta("addtion2")));	
			map.put("addtion3",StringUtils.toString(addtion3, eiMetadata.getMeta("addtion3")));	
			map.put("sendmode",StringUtils.toString(sendmode, eiMetadata.getMeta("sendmode")));	
			map.put("sid",StringUtils.toString(sid, eiMetadata.getMeta("sid")));	
			map.put("receipt",StringUtils.toString(receipt, eiMetadata.getMeta("receipt")));	
			map.put("receipttime",StringUtils.toString(receipttime, eiMetadata.getMeta("receipttime")));	
			map.put("innerid",StringUtils.toString(innerid, eiMetadata.getMeta("innerid")));	
			map.put("fragcount",StringUtils.toString(fragcount, eiMetadata.getMeta("fragcount")));	
			map.put("configid",StringUtils.toString(configid, eiMetadata.getMeta("configid")));	
			map.put("linkid1",StringUtils.toString(linkid1, eiMetadata.getMeta("linkid1")));	
			map.put("linkid2",StringUtils.toString(linkid2, eiMetadata.getMeta("linkid2")));	
			map.put("validityperiod",StringUtils.toString(validityperiod, eiMetadata.getMeta("validityperiod")));	
			map.put("ifreceipt",StringUtils.toString(ifreceipt, eiMetadata.getMeta("ifreceipt")));	
			map.put("outteruser",StringUtils.toString(outteruser, eiMetadata.getMeta("outteruser")));	
			map.put("fdStatus",StringUtils.toString(fdStatus, eiMetadata.getMeta("fdStatus")));	
			
		return map;
	
	}
}